package com.cloudfun.campusshare.common.model.dto;

import com.cloudfun.campusshare.common.constant.ProductType;
import com.cloudfun.campusshare.common.constant.PromotionStatus;
import com.cloudfun.campusshare.common.constant.PromotionType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Created by Huqin on 2020/6/8
 */
@Data
@ApiModel("同一时间段活动列表查询DTO")
public class SamePeriodPromotionSearchDTO {

    @ApiModelProperty("活动类型")
    private PromotionType promotionType;

    @ApiModelProperty("洗衣点id")
    private String washPointId;

    @ApiModelProperty("产品类型")
    private List<ProductType> productTypes;

    @ApiModelProperty("活动开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;

    @ApiModelProperty("活动结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime endTime;

    @ApiModelProperty("状态")
    private PromotionStatus status;

}
